Makefiles: Use $(PHONY) instead of .PHONY.
authorBen Pfaff <blp@cs.stanford.edu>
Sat, 5 Sep 2020 22:08:33 +0000 (15:08 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Sat, 5 Sep 2020 22:08:33 +0000 (15:08 -0700)
Avoids a warning from Automake in Smake:

src/ui/gui/automake.mk:463: warning: .PHONY was already defined in condition TRUE, which includes condition HAVE_GUI ...
Makefile.am:91:   'src/automake.mk' included from here
src/automake.mk:55:   'src/ui/automake.mk' included from here
src/ui/automake.mk:21:   'src/ui/gui/automake.mk' included from here
po/automake.mk:128: ... '.PHONY' previously defined here
Makefile.am:87:   'po/automake.mk' included from here

Makefile.am
doc/automake.mk
po/automake.mk
src/ui/gui/automake.mk

index 59834123ac4bbbefe737d28fbdb8a59be38e5d5a..b2df75983bc26238fcade0ebe42400803dc6787b 100644 (file)
@@ -154,4 +154,4 @@ distfiles: Makefile
              -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t" \
          | LC_ALL=C sort -u > $@
 CLEANFILES += distfiles gitfiles missing-distfiles
-.PHONY: dist-hook-git
+PHONY += dist-hook-git
index e02f1f4c68d0217a280cad777b6f7721451a512c..976b5845078b62ac76769b071dca2cc1506c80b0 100644 (file)
@@ -94,4 +94,4 @@ dist_docbook_DATA = doc/pspp.xml
 CLEANFILES += pspp-dev.dvi $(docbook_DATA)
 
 doc: $(INFO_DEPS) $(DVIS) $(PDFS) $(PSS) $(HTMLS) $(dist_docbook_DATA)
-.PHONY: doc
+PHONY += doc
index 6f918602a8946768e1d8bb6262c350123f64f33a..1d25f1694800b78971b3ee7f92b32a337ca900f3 100644 (file)
@@ -125,7 +125,7 @@ CLEAN_LOCAL += po_CLEAN
 # Download the po files from http://translationproject.org
 # The final action to this rule is to remove the .pot file.  This
 # is because the po files must be re-merged against an updated version of it.
-.PHONY: po-update
+PHONY += po-update
 po-update: $(POFILES)
        for p in $^; do \
                wget --recursive --level=1 --accept=po --no-directories --no-use-server-timestamps \
index a334d2ff8e0403050bc5a446fbb69f13447617ab..54e8da0c610af7e409d7bd3e8d58e6de9025bde7 100644 (file)
@@ -460,7 +460,7 @@ src/ui/gui/glade-wrapper: src/ui/gui/glade-wrapper.in
        $(SED) -e 's%\@abs_top_srcdir\@%@abs_top_srcdir@%g' -e 's%\@abs_top_builddir\@%@abs_top_builddir@%g'  $< > $@
        chmod a+x $@
 
-.PHONY: glade-tools
+PHONY += glade-tools
 glade-tools: src/ui/gui/glade-wrapper src/ui/gui/libpsppire-glade.la
 
 # This works around a possible bug in Automake 1.16.1 which installs