Merge branch 'master' into hotfix/makefile
This commit is contained in:
commit
aa2b368a23
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
/config.h
|
14
makefile
14
makefile
|
@ -19,10 +19,15 @@ OPTIONS = -Dgtk_doc=false -Dintrospection=false \
|
||||||
|
|
||||||
PREFIX ?= /usr/local
|
PREFIX ?= /usr/local
|
||||||
|
|
||||||
all:
|
all: config.h rose
|
||||||
|
|
||||||
|
rose:
|
||||||
$(CC) -fPIC -O3 -o rose *.c $(CFLAGS) $(LIBS) $(OPTIONS)
|
$(CC) -fPIC -O3 -o rose *.c $(CFLAGS) $(LIBS) $(OPTIONS)
|
||||||
strip ./rose
|
strip ./rose
|
||||||
|
|
||||||
|
config.h:
|
||||||
|
[ -f "$@" ] || cp config.def.h $@
|
||||||
|
|
||||||
install: all
|
install: all
|
||||||
cp -f ./rose $(PREFIX)/bin/rose
|
cp -f ./rose $(PREFIX)/bin/rose
|
||||||
cp -f ./scripts/dmenu_rose.sh $(PREFIX)/bin/dmenu_rose
|
cp -f ./scripts/dmenu_rose.sh $(PREFIX)/bin/dmenu_rose
|
||||||
|
@ -33,8 +38,11 @@ uninstall:
|
||||||
clean:
|
clean:
|
||||||
rm -f rose compile_flags.txt
|
rm -f rose compile_flags.txt
|
||||||
|
|
||||||
|
clean-all: clean
|
||||||
|
rm -f config.h
|
||||||
|
|
||||||
flags:
|
flags:
|
||||||
echo $(CFLAGS) | sed 's/ /\n/g' > compile_flags.txt
|
echo $(CFLAGS) | sed 's/ /\n/g' > compile_flags.txt
|
||||||
|
|
||||||
.PHONY: all clean install uninstall flags
|
.PHONY: all clean clean-all install uninstall flags config.h
|
||||||
.SILENT: all clean install uninstall flags
|
.SILENT: all clean clean-all install uninstall flags config.h
|
||||||
|
|
Loading…
Reference in New Issue
Block a user