Sunrise and sunset events
[wakeup.git] / src / Makefile.am
index 337d117..b92acb1 100644 (file)
@@ -1,13 +1,15 @@
 bin_PROGRAMS = wakeup pwm curtain lightswitch lightcontrol read_serial
 sbin_SCRIPTS = startpwm
 
-wakeup_SOURCES = wakeup.cpp event.cpp logging.cpp
+wakeup_SOURCES = wakeup.cpp event.cpp logging.cpp sunrise.cpp
 pwm_SOURCES = pwm.c
 curtain_SOURCES = curtain.c
 lightswitch_SOURCES = lightswitch.c
 lightcontrol_SOURCES = lightcontrol.cpp logging.cpp
 
-sunrise_SOURCES = sunrise.cpp
 read_serial_SOURCES = read_serial.cpp
 
 LDADD = -lTachyon -lACL
+
+install-exec-hook:
+       chmod u+s $(DESTDIR)$(bindir)/curtain