Commit c644112b authored by Nicolai Stange's avatar Nicolai Stange Committed by Hendryk Bockelmann
Browse files

cleanup: autotools: replace clean-local target by CLEANFILES mechanism

CLEANFILES is way easier than writing custom clean-local hooks. Employ it.
parent 5a0dcfc5
......@@ -23,6 +23,8 @@ else
libsct_la_SOURCES = sct_collector.c sct_f2c.c sct_mach.c sct_reduce.c sct_reporter.c sct_mergesort.c
endif
CLEANFILES = sct.h sct.mod
EXTRA_DIST = $(header)
# Build public header sct.h
......@@ -38,13 +40,6 @@ sct.mod: sct.o
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = pkgconfig/sct.pc
# Remove module files and sct.h upon make clean:
clean-local: clean-modules clean-sctheader
clean-modules:
test -z "$(FC_MODEXT)" || $(RM) *.$(FC_MODEXT)
clean-sctheader:
test ! -r sct.h || $(RM) sct.h
uninstall-local:
-rm $(DESTDIR)/$(libdir)/$(lib_LTLIBRARIES)
-cd $(DESTDIR)/$(pkgincludedir) && rm $(nodist_pkginclude_HEADERS)
......
......@@ -14,7 +14,4 @@ endif
sct.mod: nosct.o
# Remove module files and sct.h upon make clean:
clean-local: clean-modules
clean-modules:
test -z "$(FC_MODEXT)" || $(RM) *.$(FC_MODEXT)
CLEANFILES = sct.mod
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment