mirror of
https://github.com/0intro/wmii
synced 2024-11-22 13:52:17 +03:00
8ba6c84f1c
Filter comments out of ctl files. Update util/genconfig. Add a notification bar (I've had one for some time). Make wmiirc more like rc.wmii.
97 lines
2.0 KiB
Makefile
97 lines
2.0 KiB
Makefile
.SILENT:
|
|
.SUFFIXES: .O .o .o_pic .c .sh .rc .so .awk .1 .depend .install .uninstall .clean
|
|
all:
|
|
|
|
.c.depend:
|
|
echo MKDEP $<
|
|
$(MKDEP) $(CFLAGS) $< >>.depend
|
|
|
|
.sh.depend .rc.depend .1.depend .awk.depend:
|
|
:
|
|
|
|
.c.o:
|
|
$(COMPILE) $@ $<
|
|
|
|
.c.o_pic:
|
|
$(COMPILEPIC) $@ $<
|
|
|
|
.o.O:
|
|
$(LINK) $@ $<
|
|
|
|
.c.O:
|
|
${COMPILE} ${<:.c=.o} $<
|
|
${LINK} $@ ${<:.c=.o}
|
|
|
|
.sh.O:
|
|
echo FILTER $(BASE)$<
|
|
$(FILTER) $< >$@
|
|
sh -n $@
|
|
chmod 0755 $@
|
|
.rc.O .awk.O:
|
|
echo FILTER $(BASE)$<
|
|
$(FILTER) $< >$@
|
|
chmod 0755 $@
|
|
|
|
.O.install:
|
|
echo INSTALL $$($(CLEANNAME) $(BASE)$*)
|
|
cp -f $< $(BIN)/$*
|
|
chmod 0755 $(BIN)/$*
|
|
.O.uninstall:
|
|
echo UNINSTALL $$($(CLEANNAME) $(BASE)$*)
|
|
rm -f $(BIN)/$*
|
|
|
|
.a.install .so.install:
|
|
echo INSTALL $$($(CLEANNAME) $(BASE)$<)
|
|
cp -f $< $(LIBDIR)/$<
|
|
chmod 0644 $(LIBDIR)/$<
|
|
.a.uninstall .so.uninstall:
|
|
echo UNINSTALL $$($(CLEANNAME) $(BASE)$<)
|
|
rm -f $(LIBDIR)/$<
|
|
|
|
.h.install:
|
|
echo INSTALL $$($(CLEANNAME) $(BASE)$<)
|
|
cp -f $< $(INCLUDE)/$<
|
|
chmod 0644 $(INCLUDE)/$<
|
|
.h.uninstall:
|
|
echo UNINSTALL $$($(CLEANNAME) $(BASE)$<)
|
|
rm -f $(INCLUDE)/$<
|
|
|
|
.1.install:
|
|
echo INSTALL man $$($(CLEANNAME) $*'(1)')
|
|
$(FILTER) $< >$(MAN)/man1/$<
|
|
chmod 0644 $(MAN)/man1/$<
|
|
.1.uninstall:
|
|
echo UNINSTALL man $$($(CLEANNAME) $*'(1)')
|
|
rm -f $(MAN)/man1/$<
|
|
|
|
.O.clean:
|
|
rm -f $< || true 2>/dev/null
|
|
rm -f $*.o || true 2>/dev/null
|
|
.o.clean .o_pic.clean:
|
|
rm -f $< || true 2>/dev/null
|
|
|
|
printinstall:
|
|
mkdirs:
|
|
clean:
|
|
install: printinstall mkdirs
|
|
depend: cleandep
|
|
|
|
FILTER = cat
|
|
COMPILE= CC="$(CC)" CFLAGS="$(CFLAGS)" $(ROOT)/util/compile
|
|
COMPILEPIC= CC="$(CC)" CFLAGS="$(CFLAGS) $(SOCFLAGS)" $(ROOT)/util/compile
|
|
LINK= LD="$(LD)" LDFLAGS="$(LDFLAGS)" $(ROOT)/util/link
|
|
LINKSO= LD="$(LD)" LDFLAGS="$(SOLDFLAGS)" $(ROOT)/util/link
|
|
CLEANNAME=$(ROOT)/util/cleanname
|
|
|
|
include $(ROOT)/config.mk
|
|
|
|
# I hate this.
|
|
MKCFGSH=if test -f $(ROOT)/config.local.mk; then echo $(ROOT)/config.local.mk; else echo /dev/null; fi
|
|
MKCFG:=${shell $(MKCFGSH)}
|
|
MKCFG!=${MKCFGSH}
|
|
include $(MKCFG)
|
|
|
|
CFLAGS += -I$$(echo $(INCPATH)|sed 's/:/ -I/g')
|
|
include $(ROOT)/mk/common.mk
|
|
|