commit e910767243f781e99a99660bc36416b5905782f2 from: Omar Polo date: Sun Jul 01 09:14:15 2018 UTC Updated makefile and readme commit - 6814575523884ec53825798d64594258aaafafe7 commit + e910767243f781e99a99660bc36416b5905782f2 blob - c45310a694e5b6c080f86adb73402cfb63fcc3db blob + 83cd59c6746c9a2ee1f11144e3ae8026adb4a1e9 --- Makefile +++ Makefile @@ -6,22 +6,24 @@ CDEFS = -DUSE_XINERAMA -DUSE_XFT -DUSE_STRCASESTR # you may not want to change these CC ?= cc -LIBS = `pkg-config --libs x11 ${OPTIONAL}` +LIBS = `pkg-config --libs x11 $(OPTIONAL)` OPTIM = -O3 -CFLAGS = ${CDEFS} -DVERSION=\"$(VERSION)\" `pkg-config --cflags x11 ${OPTIONAL}` +CFLAGS = $(CDEFS) -DVERSION=\"$(VERSION)\" `pkg-config --cflags x11 $(OPTIONAL)` -.PHONY: all clean install debug no_xft no_xinerama no_xft_xinerama gnu +.PHONY: all clean install debug no_xft no_xinerama no_xft_xinerama gnu manpage all: mymenu -mymenu: mymenu.c mymenu.1.md - $(CC) $(CFLAGS) mymenu.c -o mymenu $(LIBS) ${OPTIM} +mymenu: mymenu.c + $(CC) $(CFLAGS) mymenu.c -o mymenu $(LIBS) $(OPTIM) +manpage: mymenu.1.md + mymenu.1.md: mymenu.1 mandoc -T markdown mymenu.1 > mymenu.1.md gnu: mymenu.c - make CDEFS="-D_GNU_SOURCE ${CDEFS}" + make CDEFS="-D_GNU_SOURCE $(CDEFS)" debug: make OPTIM="-g -O0 -Wall" blob - 842a415ed056c1879835035110b3880c2d346427 blob + b10a67de84be3239608e98b23faa1fcc37ae7dc8 --- README.md +++ README.md @@ -26,10 +26,11 @@ out also the [template](Xexample) for the resources. ## Dependencies - Xlib - - Xinerama (optional) for multi-monitor support - - Xft (optional) for TrueType font support - - pkg-config (optional) used in the makefile to generate `LIBS` and - `CFLAGS` correctly + - Xinerama *(optional)* for multi-monitor support + - Xft *(optional)* for TrueType font support + - pkg-config *(optional)* to generate `LIBS` and `CFLAGS` + - mandoc *(optional)* to generate the + [markdown version of the manpage](mymenu.1.md) ## Build @@ -41,6 +42,9 @@ want to run: - `make no_xinerama` to build without xinerama support; - `make no_xft_xinerama` to build without xinerama *and* no xft support. +Or you can update the first lines of the `Makefile` customizing +`OPTIONAL` and `CDEFS` to your needs. + #### ignore case completion / don't have `strcasestr(3)` If you want to build without the ignore case completion or on your