diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000000000000000000000000000000000000..e1491bbf8827d80f087128758709a087b6f0e8c3
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,5 @@
+SUBDIRS=xerox-acct xerox-xcpt
+.DEFAULT_GOAL := all
+
+all clean install:
+	@for D in $(SUBDIRS) ; do make -C $$D $@ ; done
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000000000000000000000000000000000000..722571111d232773bbf3929881278c3cb30ef631
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+kam-printing (0.1) unstable; urgency=medium
+
+  * Initial release.
+
+ -- Martin Mares <mj@ucw.cz>  Mon, 17 May 2021 12:57:01 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000000000000000000000000000000000000..ec635144f60048986bc560c5576355344005e6e7
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000000000000000000000000000000000000..277c339d1d6be3053e77223be3cdd6ea5d7ff405
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,13 @@
+Source: kam-printing
+Section: unknown
+Priority: optional
+Maintainer: Martin Mares <mj@ucw.cz>
+Build-Depends: debhelper (>= 9)
+Standards-Version: 3.9.5
+Vcs-Git: https://gitlab.kam.mff.cuni.cz/wizards/kam-printing
+
+Package: kam-printing
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: KAM printer drivers
+ Printer drivers we use at KAM.
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000000000000000000000000000000000000..cf59ecc9ad085c6b7c51457cbfcbebf24aa466f3
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,9 @@
+#!/usr/bin/make -f
+#DH_VERBOSE = 1
+
+# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*
+DPKG_EXPORT_BUILDFLAGS = 1
+include /usr/share/dpkg/default.mk
+
+%:
+	dh $@
diff --git a/xerox-acct/Makefile b/xerox-acct/Makefile
index c1d7bf32428d7f66c3ae657c72f7f18291800f5a..1d9937662ecb8edf08140cfd34e0e8e1c43ba0df 100644
--- a/xerox-acct/Makefile
+++ b/xerox-acct/Makefile
@@ -6,3 +6,7 @@ all: xerox-acct
 clean:
 	rm -f `find . -name "*~" -or -name "*.[oa]" -or -name TAGS -or -name core -or -name .depend -or -name .#*`
 	rm -f xerox-acct
+
+install: all
+	install -d $(DESTDIR)/usr/lib/cups/filter
+	install xerox-acct $(DESTDIR)/usr/lib/cups/filter/
diff --git a/xerox-xcpt/Makefile b/xerox-xcpt/Makefile
index 49e30b61dd698b7d1d528cf8ac423bede68158d8..7c08fe828cf0195bc50fd82e3f8f8c4a66d71ab5 100644
--- a/xerox-xcpt/Makefile
+++ b/xerox-xcpt/Makefile
@@ -6,3 +6,7 @@ all: xerox-xcpt
 clean:
 	rm -f `find . -name "*~" -or -name "*.[oa]" -or -name TAGS -or -name core -or -name .depend -or -name .#*`
 	rm -f xerox-xcpt
+
+install: all
+	install -d $(DESTDIR)/usr/lib/cups/filter
+	install xerox-xcpt $(DESTDIR)/usr/lib/cups/filter/