]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
res/Makefile: alias dist-clean to distclean
authorMatthew Jordan <mjordan@digium.com>
Mon, 13 Jan 2014 21:45:35 +0000 (21:45 +0000)
committerMatthew Jordan <mjordan@digium.com>
Mon, 13 Jan 2014 21:45:35 +0000 (21:45 +0000)
A 'make distclean' is equivalent to 'make dist-clean' in the top most Makefile.
This patch updates the res/Makefile to recognize both distclean and dist-clean.
Note that this is needed for removing build.mak, which can run into problems
if the source file of Asterisk or its path is changed after build.mak is
generated.

(issue ASTERISK-22480)
Reported by: Matt Jordan

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@405362 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/Makefile

index 1ad7f169b59f55f5fa79111028924af820115001..9a6424ff49f8c0f71332d59a754c7c62144bef70 100644 (file)
@@ -70,7 +70,8 @@ clean::
        @if [ -f pjproject/build.mak ]; then $(MAKE) -C pjproject realclean; fi
        rm -f snmp/*.o snmp/*.i ael/*.o ael/*.i ais/*.o ais/*.i
 
-dist-clean::
+dist-clean:: distclean
+distclean::
        rm -f pjproject/build.mak
 
 pjproject/build.mak: pjproject/aconfigure
@@ -92,4 +93,5 @@ res_rtp_asterisk.o: _ASTCFLAGS+=-DUSE_PJPROJECT
 res_rtp_asterisk.o: _ASTCFLAGS+=$(PJ_CFLAGS)
 res_rtp_asterisk.so: _ASTLDFLAGS+=$(PJ_LDFLAGS)
 res_rtp_asterisk.so: LIBS+=$(PJ_LDLIBS)
-endif
\ No newline at end of file
+endif
+