mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
Everywhere: Remove everything non-essential for "make clean all"
This commit removes everything not strictly necessary for running "make clean all" inside jw-build. packaging jw-devtest. This cuts the repo down from 24077 to 4725 lines of code. The idea is to 1) Further remove bloat from the remaining bits 2) Re-add what's necessary to build and package other essential repos. The decision should be based on whether or not jw-build can also be useful in a non-janware context. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
c36c83c164
commit
bc883deed4
199 changed files with 0 additions and 18851 deletions
|
|
@ -1,44 +0,0 @@
|
|||
include $(JWBDIR)/make/defs.mk
|
||||
include $(JWBDIR)/make/defs-cpp.mk
|
||||
include $(JWBDIR)/make/dev-utils.mk
|
||||
|
||||
# variables
|
||||
SRC_H += $(PROJ_H) $(wildcard $(HDRDIR_SCOPE_SUFFIX)/*.h)
|
||||
|
||||
# mandatory targets
|
||||
all: $(PROJ_H)
|
||||
clean: clean.include
|
||||
install: install_HDR
|
||||
|
||||
# not wäry naaice
|
||||
ifneq ($(HDRDIR_SCOPE_SUFFIX),)
|
||||
install_HDR: dir_install_hdr_suffix.done
|
||||
|
||||
dir_install_hdr_suffix.done:
|
||||
$(INSTALL) -d -o $(HDRDIROWNER) -g $(HDRDIRGROUP) -m $(HDRDIRMODE) $(INSTALL_HDRDIR)/$(HDRDIR_SCOPE_SUFFIX)
|
||||
touch $@
|
||||
endif
|
||||
|
||||
# convenience targets
|
||||
project-header: $(PROJ_H)
|
||||
|
||||
# rules
|
||||
clean.include:
|
||||
$(RM) -rf *.h *~ .*.swp *.done $(PROJ_H) $(HDRDIR_SCOPE_SUFFIX)
|
||||
|
||||
$(PROJ_H): $(filter-out $(PROJ_H) $(PROJECT)/$(PROJ_H),$(wildcard *.h $(PROJECT)/*.h))
|
||||
echo "#ifndef _$(PROJECT_CAPNAME)_H" > $@.tmp
|
||||
echo "#define _$(PROJECT_CAPNAME)_H" >> $@.tmp
|
||||
echo >> $@.tmp
|
||||
for h in $(sort $(patsubst $(PROJECT)/%,%,$^)); do echo "#include <$(PROJECT)/$$h>"; done >> $@.tmp
|
||||
echo >> $@.tmp
|
||||
echo "#endif /* #ifndef _$(PROJECT_CAPNAME)_H */" >> $@.tmp
|
||||
mv $@.tmp $@
|
||||
|
||||
install-links:
|
||||
DEVELOPMENT=false make do-install-links
|
||||
|
||||
do-install-links:
|
||||
@$(call install_links,HDR)
|
||||
|
||||
include $(JWBDIR)/make/rules.mk
|
||||
Loading…
Add table
Add a link
Reference in a new issue