JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
Prepare for release 1.0.0.
[spectrwm.git] / linux / Makefile
index 2060184..5f98318 100644 (file)
@@ -11,6 +11,11 @@ CC= gcc
 
 LVERS= $(shell . ../lib/shlib_version; echo $$major.$$minor)
 
+BUILDVERSION= $(shell sh $(CURDIR)/../buildver.sh)
+ifneq ("${BUILDVERSION}", "")
+CFLAGS+= -DSPECTRWM_BUILDSTR=\"$(BUILDVERSION)\"
+endif
+
 all: spectrwm libswmhack.so.$(LVERS)
 
 spectrwm.c:
@@ -40,6 +45,7 @@ install: all
        install -m 644 ../spectrwm_it.1 $(DESTDIR)$(MANDIR)/man1/spectrwm_it.1
        install -m 644 ../spectrwm_pt.1 $(DESTDIR)$(MANDIR)/man1/spectrwm_pt.1
        install -m 644 ../spectrwm_ru.1 $(DESTDIR)$(MANDIR)/man1/spectrwm_ru.1
+       ln -sf $(DESTDIR)$(BINDIR)/spectrwm $(DESTDIR)$(BINDIR)/scrotwm
 
 clean:
        rm -f spectrwm *.o *.so libswmhack.so.* spectrwm.c swm_hack.c version.h