mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
Tune the clean-l usage
- Fix the doc/ clean target which was called clean-local - Consistently use $(RM) - Introduce CLEAN variable to make it simpler to costumize local cleaning
This commit is contained in:
parent
50f4b46616
commit
249fac4345
5
Makefile
5
Makefile
@ -4,9 +4,6 @@ include $(path_to_top)/Makefile.config
|
|||||||
# TODO: Automagically rerun autoconf.
|
# TODO: Automagically rerun autoconf.
|
||||||
|
|
||||||
SUBDIRS = doc po src
|
SUBDIRS = doc po src
|
||||||
|
CLEAN = features.log
|
||||||
|
|
||||||
clean-l:
|
|
||||||
rm -rf features.log
|
|
||||||
|
|
||||||
include $(path_to_top)/Makefile.lib
|
include $(path_to_top)/Makefile.lib
|
||||||
|
@ -59,8 +59,10 @@ endif
|
|||||||
$(call cmd,archive)
|
$(call cmd,archive)
|
||||||
|
|
||||||
ifdef OBJS
|
ifdef OBJS
|
||||||
|
CLEAN += $(OBJS)
|
||||||
|
|
||||||
clean-l:
|
clean-l:
|
||||||
rm -f $(OBJS) *.a
|
$(RM) $(CLEAN) *.a
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
@ -81,5 +83,4 @@ all-l:
|
|||||||
install-l:
|
install-l:
|
||||||
clean-l:
|
clean-l:
|
||||||
|
|
||||||
|
|
||||||
# vim:syntax=make
|
# vim:syntax=make
|
||||||
|
@ -129,7 +129,7 @@ doc-dirs:
|
|||||||
$(INSTALL) -d $(DOC_DIRS)
|
$(INSTALL) -d $(DOC_DIRS)
|
||||||
|
|
||||||
# $(MAN_DIR) intentionally left out
|
# $(MAN_DIR) intentionally left out
|
||||||
clean-local:
|
clean-l:
|
||||||
$(RM) -r $(HTML_DIR) $(XML_DIR) $(TXT_DIR) $(PDF_DIR) *.tmp
|
$(RM) -r $(HTML_DIR) $(XML_DIR) $(TXT_DIR) $(PDF_DIR) *.tmp
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user