/ Makefile.am
Makefile.am
1 AUTOMAKE_OPTIONS=1.9 2 ACLOCAL_AMFLAGS = -I m4 3 EXTRA_DIST=SubmittingPatches .gitignore tools/version.sh 4 5 ## rebuild when the version changes 6 7 BUILDDIRS = 8 9 SUBDIRS=. src systemd 10 DIST_SUBDIRS = $(SUBDIRS) 11 12 BUILT_SOURCES=path.h version.h 13 CLEANFILES=path.h version.h 14 15 path.h : Makefile 16 echo "#define PKGDATADIR \"${pkgdatadir}\"" >$@ 17 echo "#define PKGLIBDIR \"${pkglibdir}\"" >>$@ 18 19 .PHONY: CHECK 20 version.h: CHECK 21 echo "#define REAL_VERSION \"${shell tools/version.sh}\"" >>$@.new 22 cmp -s $@.new $@ && rm $@.new || mv $@.new $@ 23 24 25 .PHONY: help HELP 26 help HELP: 27 @echo "" 28 @echo "" 29 @echo "in addition to standard targets (all, install, clean, ...)" 30 @echo "the following make targets may be supported (at this level):" 31 @echo "" 32 @echo " make help - print this text" 33 @echo "" 34 35 # update version number 36 config.h: configure 37 38 test: all 39 sh tools/test.sh