add install target

This commit is contained in:
ehouse 2006-02-27 00:08:32 +00:00
parent 90412fe9d4
commit 10d38faa33

View file

@ -132,5 +132,8 @@ $(PLATFORM)/%.o: %.c
$(CC) -c $(INCLUDES) $(DEFINES) -DPLATFORM=$(PLATFORM) $(CFLAGS) $< -o $@
clean:
rm -rf $(PLATFORM)/*.o $(TARGET)
rm -rf $(PLATFORM)/*.o $(TARGET) $(DESTDIR)/usr/local/bin/xwords
cd ../common && $(MAKE) PLATFORM=$(PLATFORM) $@
install: $(TARGET)
cp $< $(DESTDIR)/usr/local/bin