
Pity that the library does not provide a function to extract the status code from the StatusCodeException, so when they had to add a new field, it breaks every single place that does it.
23 lines
756 B
Makefile
Executable file
23 lines
756 B
Makefile
Executable file
#!/usr/bin/make -f
|
|
|
|
ifeq (install ok installed,$(shell dpkg-query -W -f '$${Status}' libghc-yesod-dev 2>/dev/null))
|
|
export FEATURES=-DWITH_ASSISTANT -DWITH_S3 -DWITH_HOST -DWITH_PAIRING -DWITH_XMPP -DWITH_OLD_HTTP_CONDUIT -DWITH_WEBAPP -DWITH_OLD_YESOD
|
|
else
|
|
export FEATURES=-DWITH_ASSISTANT -DWITH_S3 -DWITH_HOST -DWITH_PAIRING -DWITH_XMPP -DWITH_OLD_HTTP_CONDUIT
|
|
endif
|
|
ifeq (install ok installed,$(shell dpkg-query -W -f '$${Status}' libghc-dav-dev 2>/dev/null))
|
|
export FEATURES:=${FEATURES} -DWITH_WEBDAV
|
|
endif
|
|
|
|
%:
|
|
dh $@
|
|
|
|
# Builds standalone tarball with the same FEATURES as debian package.
|
|
standalone:
|
|
$(MAKE) linuxstandalone
|
|
|
|
# Not intended for use by anyone except the author.
|
|
announcedir:
|
|
@echo ${HOME}/src/git-annex/doc/news
|
|
|
|
.PHONY: standalone
|