Make 'dist-hook' targets, which copy the .spec file into $(distdir), depend upon the .spec file, so that the .spec file will be regenerated when a previously-compiled tree is 'dist'd with a new version number.
18 lines
466 B
Makefile
18 lines
466 B
Makefile
|
|
always_built_SUBDIRS = control-center capplets idl
|
|
|
|
SUBDIRS = intl po macros \
|
|
$(always_built_SUBDIRS)
|
|
|
|
#DIST_SUBDIRS = intl po macros $(always_built_SUBDIRS)
|
|
|
|
|
|
EXTRA_DIST = control-center.spec.in
|
|
|
|
dist-hook: control-center.spec
|
|
cp control-center.spec $(distdir)
|
|
|
|
## to automatically rebuild aclocal.m4 if any of the macros in `macros/' change
|
|
@MAINT@include macros/macros.dep
|
|
@MAINT@macros/macros.dep: macros/Makefile.am
|
|
@MAINT@ cd macros && $(MAKE) macros.dep
|