Mercurial > hg > xemacs-beta
comparison modules/common/Makefile.common @ 3062:21d92abaac3a
[xemacs-hg @ 2005-11-13 10:39:28 by ben]
fix up clean targets to delete .elc's as necessary
dynodump/Makefile.in.in: Add targets distclean-noconfig, realclean-noconfig, extraclean-noconfig.
Do some refactoring for cleanliness.
Makefile.in.in: Add targets distclean-noconfig, realclean-noconfig, extraclean-noconfig.
*-noconfig targets are like the base targets they're based off of, but
don't delete Makefiles and certain other files needed to rebuild the
Makefiles as necessary. Refactor things to be more consistent.
Top-level `elcclean' is an alias for `realclean-noconfig' and is used
by target `beta'. `realclean-noconfig' (and, by extension, `realclean'
and `extraclean') remove the .elc files.
Makefile.in.in: Add targets distclean-noconfig, realclean-noconfig, extraclean-noconfig.
Do some refactoring for cleanliness.
Makefile.in.in: Add targets distclean-noconfig, realclean-noconfig, extraclean-noconfig.
Do some refactoring for cleanliness.
Makefile.in.in: Add targets distclean-noconfig, realclean-noconfig, extraclean-noconfig.
Do some refactoring for cleanliness.
Makefile.in.in: Add targets distclean-noconfig, realclean-noconfig, extraclean-noconfig.
Do some refactoring for cleanliness.
Makefile: Add targets distclean-noconfig, realclean-noconfig, extraclean-noconfig.
Do some refactoring for cleanliness.
common/Makefile.common: Add targets distclean-noconfig, realclean-noconfig, extraclean-noconfig.
Do some refactoring for cleanliness. Put in some magic cookies in
comments so this file gets read as a make file by XEmacs.
author | ben |
---|---|
date | Sun, 13 Nov 2005 10:39:41 +0000 |
parents | bbba13600d74 |
children | 193188e494b2 |
comparison
equal
deleted
inserted
replaced
3061:fd1acd2f457a | 3062:21d92abaac3a |
---|---|
1 ## Common Makefile section for modules in XEmacs. | 1 ## Common Makefile section for modules in XEmacs. |
2 ## Copyright (C) 2002 Jerry James. | 2 ## Copyright (C) 2002 Jerry James. |
3 ## Copyright (C) 2005 Ben Wing. | |
3 | 4 |
4 ## This file is part of XEmacs. | 5 ## This file is part of XEmacs. |
5 | 6 |
6 ## XEmacs is free software; you can redistribute it and/or modify it | 7 ## XEmacs is free software; you can redistribute it and/or modify it |
7 ## under the terms of the GNU General Public License as published by the | 8 ## under the terms of the GNU General Public License as published by the |
60 LIBSTDCPP=@LIBSTDCPP@ | 61 LIBSTDCPP=@LIBSTDCPP@ |
61 #ifdef HAVE_MS_WINDOWS | 62 #ifdef HAVE_MS_WINDOWS |
62 IMPORT_LIB=../../src/xemacs-import.a | 63 IMPORT_LIB=../../src/xemacs-import.a |
63 #endif | 64 #endif |
64 | 65 |
65 .PHONY: clean distclean install | 66 .PHONY: install |
66 all: $(OBJECT_TO_BUILD) | 67 all: $(OBJECT_TO_BUILD) |
67 | 68 |
68 .c.o: | 69 .c.o: |
69 $(MODCC) $(MODCFLAGS) -c $< | 70 $(MODCC) $(MODCFLAGS) -c $< |
70 | 71 |
75 $(MODNAME)_i.c: $(SRCS) | 76 $(MODNAME)_i.c: $(SRCS) |
76 ELLMAKEDOC=$(MAKE_DOCFILE) $(MODCC) --mode=init --mod-output=$@ \ | 77 ELLMAKEDOC=$(MAKE_DOCFILE) $(MODCC) --mode=init --mod-output=$@ \ |
77 --mod-name=$(MODNAME) --mod-version=$(MODVER) \ | 78 --mod-name=$(MODNAME) --mod-version=$(MODVER) \ |
78 --mod-title=$(MODTITLE) $(SRC_SRCS) | 79 --mod-title=$(MODTITLE) $(SRC_SRCS) |
79 | 80 |
80 clean: | 81 .PHONY: mostlyclean clean distclean realclean extraclean |
81 $(RM) $(MODNAME).ell $(OBJS) $(MODNAME)_i.* *~ | 82 .PHONY: distclean-noconfig realclean-noconfig extraclean-noconfig |
82 | 83 mostlyclean: |
83 distclean: clean | 84 $(RM) $(OBJS) $(MODNAME)_i.* core |
84 $(RM) Makefile config.* configure | 85 clean: mostlyclean |
85 | 86 $(RM) $(MODNAME).ell |
86 extraclean: distclean | 87 distclean-noconfig: clean |
88 $(RM) config.* TAGS | |
89 ## This is used in making a distribution. | |
90 ## Do not use it on development directories! | |
91 distclean: distclean-noconfig | |
92 $(RM) GNUmakefile Makefile Makefile.in configure | |
93 realclean-noconfig: distclean-noconfig | |
94 realclean: distclean | |
95 extraclean-noconfig: realclean-noconfig | |
96 $(RM) *~ \#* | |
97 extraclean: realclean | |
98 $(RM) *~ \#* | |
87 | 99 |
88 install: $(OBJECT_TO_BUILD) | 100 install: $(OBJECT_TO_BUILD) |
89 $(INSTALL_PROGRAM) $< $(INSTALLPATH) | 101 $(INSTALL_PROGRAM) $< $(INSTALLPATH) |
102 | |
103 ## | |
104 ## Local Variables: | |
105 ## mode: makefile | |
106 ## End: | |
107 ## |